<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>查询岗位</title>
</head>

<div class="row">
	<div class="col-xs-12 pull-right">
		<input type="button"
			class="btn btn-primary btn-xs pull-right position_create_btn"
			value="添加新的岗位">
	</div>
</div>

<div class="row">
	<div class="col-xs-12">
		<table id="menu-management-table"
			class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
					<th>岗位编号</th>
					<th>岗位名称</th>
					<th>部门名称</th>
					<th>岗位类型</th>
					<th>岗位编制</th>
					<th>操作</th>
				</tr>
			</thead>

			<tbody class="position_search_body">
			</tbody>

			<tfoot class="position_search_foot">
				<tr>
					<td>当前页 <label class="page_num"></label> / <label
						class="total_page"></label>
					</td>
					<td colspan="4" class="center">
						<a class='first_page_btn'>首页</a> <a class='pre_page_btn'>上一页</a>
						<a class='next_page_btn'>下一页</a> <a class='last_page_btn'>尾页</a></td>
					<td>总记录<label class="total_num"></label>
					</td>
				</tr>
			</tfoot>
		</table>
	</div>
</div>
<!-- Modal -->
<div class="modal fade" id="add_modal" tabindex="-1" role="dialog">
	<div class="modal-dialog" role="document">
		<!-- add modal -->
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title">添加一个新的岗位</h4>
			</div>
			<form name="addModalForm" id="add_position_form" novalidate>
				<div class="modal-body">
					<div class="row">
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>岗位编号</label> <input name="add_position_id"
								id="position_id-in-add-modal add_position_id" type="text"
								class="form-control add_id_input" value="自动生成" disabled />
							<div class="space space-4"></div>
						</div>
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>岗位名称</label> <input name="add_position_name"
								id="position_name-in-add-modal add_position_id" type="text"
								class="form-control add_name_input" />
							<div class="space space-4"></div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>岗位类型</label> 
							<select name="add_position_type"
								id="position_type-in-add-modal add_position_type"
								class="form-control add_type_input">
								<option value="" class="none_type_select-in-add" selected></option>
								<option value="1" class="type_select-in-add" >岗位类型1</option>
							</select>
							<div class="space space-4"></div>
						</div>
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<label>岗位编制</label> <input name="add_position_maxmember"
								id="position_maxmember-in-add-modal add_position_maxmember"
								type="text" class="form-control add_maxmember_input" />
							<div class="space space-4"></div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>部门名称</label> 
							<select name="add_dept_name"
								id="dept_name-in-add-modal add_dept_name"
								class="form-control add_dept_name_input">
								<option value="" class="none_dept_select-in-add" selected></option>
								<option value="1" class="dept_select-in-add" >部门名称1</option>
							</select>
							<div class="space space-4"></div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<input type="submit" class="btn btn-primary add_confirm" value="确认">
					<input type="button" class="btn btn-default" data-dismiss="modal"
						value="关闭">
				</div>
			</form>
		</div>
		<!-- /add modal -->
	</div>
</div>
<!-- Modal -->
<div class="modal fade" id="edit_modal" tabindex="-1" role="dialog">
	<div class="modal-dialog" role="document">

		<!-- edit modal -->
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title">修改这个岗位</h4>
			</div>
			<form name="editModalForm" id="update_position_form" novalidate>
				<div class="modal-body">
					<div class="row">

						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>岗位编号</label> <input name="update_position_id"
								id="position_id-in-edit-modal update_position_id" type="text"
								class="form-control update_id_input" disabled />
							<div class="space space-4"></div>
						</div>
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>岗位名称</label> <input name="update_position_name"
								id="position_name-in-edit-modal update_position_name"
								type="text" class="form-control update_name_input" value="" />
							<div class="space space-4"></div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>岗位类型</label> <select name="update_position_type"
								id="position_type-in-edit-modal update_position_type"
								class="form-control update_type_input">
								<option value="" class="none_type_select-in-edit" selected></option>
								<option value="1" class="type_select-in-edit" >岗位类型1</option>
							</select>
							<div class="space space-4"></div>
						</div>
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>岗位编制</label> <input name="update_position_maxmember"
								id="position_maxmember-in-edit-modal update_position_maxmember"
								type="text" class="form-control update_maxmember_input" />
							<div class="space space-4"></div>
						</div>

					</div>
					<div class="row">
						<div class="col-xs-12 col-sm-6 col-md-5 col-md-push-1">
							<div class="space space-4"></div>
							<label>部门名称</label> <select name="update_dept_name"
								id="dept_name-in-edit-modal update_dept_name"
								class="form-control update_dept_name_input">
								<option value="" class="none_dept_select-in-edit" selected></option>
								<option value="1" class="dept_select-in-edit" >部门名称1</option>
							</select>
							<div class="space space-4"></div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<input type="submit" class="btn btn-primary" id="confirm-in-edit"
						value="确认"> <input type="button" class="btn btn-default"
						id="close-in-edit" data-dismiss="modal" value="关闭">
				</div>
			</form>
		</div>
		<!-- /edit modal -->

	</div>
</div>
<!-- Modal -->
<div class="modal fade" id="view_emp_modal" tabindex="-1" role="dialog">
	<div class="modal-dialog" role="document">
		<!-- add modal -->
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title">查看岗位下的员工</h4>
			</div>
			<div class="row">
				<div class="col-xs-12">
					<table id="menu-management-table"
						class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th class="center"><label class="pos-rel"> <input
										type="checkbox" class="ace" /> <span class="lbl"></span>
								</label></th>
								<th>员工编号</th>
								<th>员工名称</th>
							</tr>
						</thead>

						<tbody class="emp_list_container">
						</tbody>

						<tfoot class="emp_list_foot">
							<tr>
								<td>
								</td>
								<td></td>
								<td>总记录<label class="total_num"></label>
								</td>
							</tr>
						</tfoot>
					</table>
				</div>
			</div>
		</div>
		<!-- /view emp modal -->
	</div>
</div>
<!-- Modal -->
<div class="modal fade" id="delete_modal" tabindex="-1" role="dialog">
	<div class="modal-dialog" role="document">
		<!-- delete modal -->
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title">删除岗位</h4>
			</div>
			<div class="modal-body">
				<h4 class="alert alert-danger">
					确认删除？	
				</h4>
			</div>
			
			<div class="modal-footer">
				<a class="btn btn-primary confirm_in_delete" data-handler="1">确定</a>
				<a class="btn null" data-handler="0" data-dismiss="modal">取消</a>
			</div>
		</div>
		
		<!-- /delete modal -->
	</div>
</div>